package com.example.demo.Enum;

import com.example.demo.entity.Blank;
import com.example.demo.entity.Choice;
import com.example.demo.entity.Judgment;
import com.example.demo.entity.Short1;

public enum QuestionType{

    选择( 1,"choice"),
    判断( 2,"judgment"),
    填空( 3,"blank"),
    简答( 4,"short1"),;


    /** 题型 */
    public Integer code;
    public String name;

    QuestionType(Integer code,String name) {
        this.code = code;
        this.name=name;
    }

    public Integer getCode() {
        return code;
    }

    public String getName() { return name; }


    @Override
    public String toString() {
        return "QuestionType{" +
                "code=" + code +
                '}';
    }
}
